import React from 'react';
import { useSearchParams } from "react-router-dom";

export default function withParams(Component) {
  return function Wrapper() {
    const [searchParams] = useSearchParams();
    return <Component searchParams={searchParams}></Component>
  }
}